package com.mq.feign;

import com.common.entity.Kill;
import com.common.entity.Rsp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "kill",fallback = KillFeignFallBack.class)
public interface KillFeign {

    @PostMapping("/addMany")
    Rsp addMany(@RequestBody List<Kill> kills);

   @PostMapping("/findByGoodsId")
    Rsp findByGoodsId(@RequestBody String goodsId);
}
